home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Broadcaster / Broadcaster.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  529 b   |  28 lines  |  [TEXT/CWIE]

  1. // Broadcaster.h
  2.  
  3. #ifndef Broadcaster_h
  4. #define Broadcaster_h
  5.  
  6. #ifndef ListOf_h
  7. #include "ListOf.h"
  8. #endif
  9.  
  10. template < class Protocol > class BroadcastLink;
  11. template < class Protocol > class BroadcastLoop;
  12.  
  13. template < class Protocol >
  14. class Broadcaster: private ListOf< Protocol >
  15.   {
  16.     friend class BroadcastLink< Protocol >;
  17.     friend class BroadcastLoop< Protocol >;
  18.     
  19.     typedef Protocol ProtocolType;
  20.     
  21.     public:
  22.         void Send( void (ProtocolType::*message)() );
  23.         
  24.         // For more complex messages, use a BroadcastLoop.
  25.   };
  26.  
  27. #endif
  28.